/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.webapp.taglib.core.menu.context;

import javax.servlet.jsp.tagext.SimpleTag;

/**
 * <p>Interface for some part of menu item (enabled or disabled)</p>
 * <p><a href="MenuItemPart.java.html"><i>View Source</i></a></p>
 *
 * @author Sergey Zubtsovskiy <a href="mailto:sergey.zubtsovskiy@blandware.com">&lt;sergey.zubtsovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.3 $ $Date: 2006/08/03 10:08:25 $
 */
public interface ItemPart extends SimpleTag {

	/**
	 * Flag used to say that content of this part will be included in page
	 */
	public static final int FLAG_RENDER_TO_PAGE = 0;

	/**
	 * Flag used to say that content of this part will be included in menu
	 */
	public static final int FLAG_RENDER_TO_MENU = 1;

	/**
	 * Returns flag that shows, where content of this part will be included: in page or in menu.
	 * It may be used by some tags which are nested within tag, implementing this interface
	 *
	 * @return Flag that shows, where content of this part will be included: in page or in menu
	 */
	public int getRenderingFlag();
}
